#pragma once
#include "NetInfo.h"
#include "StdDef.h"
#include "UserInfo.h"

#define g_pAppConfig (CAppConfig::GetAppConfig())
class CAppConfig
{
public:
	virtual ~CAppConfig(void);
	static CAppConfig * GetAppConfig();
private:
	CAppConfig(void);
protected:
	BOOL Initialize();
	BOOL UnInitialize();
public:

	BOOL SaveConfig(TCHAR *szFileName);
	BOOL LoadConfig(TCHAR *szFileName);
	CUserInfo & GetLocalUserInfo(){return this->m_userInfo;};
private:
	CNetInfo m_netInfo;
	CUserInfo m_userInfo;
};
